int model property shows 0 in textbox .net core

97

int model property shows 0 in textbox .net core -

<%
    string userName = string.Empty;

    if (Model != null)
    {
        userName = Model.Name;
    }

%>

<input asp-for="Name" value="@userName" class="form-control" />

Comments

Submit
0 Comments